<% layout('layout') -%>
<div class="auth-wrapper">
  <div class="auth-card">
    <h2>登录系统</h2>
    <p class="muted">请输入账号信息进入药品招投标平台</p>
    <form method="post" action="/auth/login" class="form">
      <label>
        用户名
        <input name="username" placeholder="例如：bidder01" required>
      </label>
      <label>
        密码
        <input type="password" name="password" placeholder="请输入密码" required>
      </label>
      <div class="form-actions">
        <button type="submit">登录</button>
        <a class="btn-outline" href="/auth/register">我要注册</a>
      </div>
      <% if (error) { %>
        <div class="error"><%= error %></div>
      <% } %>
    </form>
  </div>
</div>


